package com.sy.bean;

import com.sy.common.valid.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
@ApiModel("套餐")
public class PackageBean {
    @ApiModelProperty(value = "套餐id,修改时不能为空")
    @NotNull(message = "id不能为空", groups = {IUpdate.class})
    int id;
    @ApiModelProperty("套餐名称")
    String name;
    @ApiModelProperty("原价")
    String oldPrice;
    @ApiModelProperty("时长（月）")
    String month;
    @ApiModelProperty("套餐费用")
    String money;
}
